package com.tools.service.license;

import com.tools.pojo.license.License;
import com.tools.pojo.license.LicenseVerifyResult;

import java.security.PrivateKey;
import java.security.PublicKey;

public interface LicenseService {

    String generateLicense(License license, PrivateKey privateKey) throws Exception;

    LicenseVerifyResult verifyLicense(String licenseJson, PublicKey publicKey);

}
